package com.linkhouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linkhouse.domain.po.TbRentOrder;
import com.linkhouse.domain.vo.TbRentOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface QueryOrederMapper extends BaseMapper<TbRentOrder> {


    List<TbRentOrderVO> selectDate(@Param("defaultStartDate") String defaultStartDate, @Param("defaultEndDate")String defaultEndDate);

    List<TbRentOrderVO> selectDate2(@Param("defaultStartDate") String defaultStartDate, @Param("defaultEndDate")String defaultEndDate);


    void insertOrder(@Param("rentOrder") TbRentOrder rentOrder);


    void updateTradeNumByOrderNum(@Param("tradeOrder")String out_trade_no, @Param("tradeOrder")String trade_no);

    void updateStatusByOrderNum(@Param("tradeOrder")String out_trade_no);
}
